<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="common.jsp"%>
<script type="text/javascript"  src="/static/views/role.js"></script>
<!DOCTYPE html>
<head>
    <title>角色分配</title>
</head>
<body>
      <table id="role_datagrid"></table>
      <div id="role_datagrid_Btn">
        <div>
            <a class="easyui-linkbutton" iconCls="icon-add" plain="true"    onclick="role_add()">新增</a>
            <a class="easyui-linkbutton" iconCls="icon-edit" plain="true"   onclick="role_edit()">编辑</a>
            <a class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="role_remove()">删除</a>
            <a class="easyui-linkbutton" iconCls="icon-reload" plain="true" onclick="role_reload()">刷新</a>
            <div>
                <input id="searchBtn" class="easyui-textbox" data-options="buttonText:'搜索',prompt:'角色编号,角色名称',width:300,label:'关键字:'">
            </div>
        </div>
      </div>
    <%--表单对话框--%>
    <div id="role_dialog">
        <form id="role_form" method="post">
            <input type="hidden" name="id">


            <table align="center" style="margin-top:10px">
               <tr>
                   <td><input class="easyui-textbox" name="sn" data-options="label:'角色编号:',labelPosition:'top',required:true,missingMessage:'请输入角色编号',width:250"></td>
                   <td><input class="easyui-textbox" name="name" data-options="label:'角色名称:',labelPosition:'top',required:true,missingMessage:'请输入角色名称',width:250"></td>
               </tr>
                <tr>
                    <td><table id="allPermissions"></table></td>
                    <td><table id="selfPermissions"></table></td>
                </tr>
            </table>
        </form>
     </div>
            <%--定义保存取消按钮--%>
            <div id="role_dialog_bt">
                    <a class="easyui-linkbutton" iconCls="icon-save"  onclick="role_save()">保存</a>
                    <a class="easyui-linkbutton" iconCls="icon-cancel" onclick="role_cancel()">取消</a>
            </div>
    </body>
</html>
